<?PHP
	header('content-type:text/html;charset=utf-8');	
	ini_set('date.timezone','Asia/Shanghai');
	require_once $_SITE_PATH_ . "m/m_information.php";
	require_once $_SITE_PATH_ . "m/m_tasklist.php";
	
	$_SESSION['api_fileflag_session_start']=isset($_SESSION['api_fileflag_start_time'])?$_SESSION['api_fileflag_start_time']:false;
	/* 
	if($_SESSION['api_fileflag_start_time'])
		{
			echo '接口正在执行！';
			exit;
		}
		else
			{
				$_SESSION['api_fileflag_session_start']=true;
				echo '接口执行结束！';
			} */
	
	$m_information=new m_information();
	$m_tasklist=new m_tasklist();
	
	$m_tasklist->_ssql='select `id`,`product_id` from tasklist where ts_type="1" and excuflag="0" and ts_flag="0" order by `id` asc ';// limit 0,1 
	$product_id=$m_tasklist->getArray($m_tasklist->query());
	$count=$m_tasklist->getCount(' ts_type="1" and excuflag="0" and ts_flag="0" ');
	
	if($count<=0)
		{
			exit;
		}
		else
			{
				echo json_encode($product_id);//$count;
			}
	
	exit;
	
	
	
	

?>